import { FetchDataConfig, VueComponentPropsType } from "@/yqSrc/utils/types";
import { ElSelect } from "element-plus";

type ElSelectProps = VueComponentPropsType<typeof ElSelect>;

export interface YqSelectItem {
  id?: string | number;
  value: string | number | boolean;
  label?: string | number;
  disabled?: boolean;
  children?: YqSelectItem[];
}
export interface YqSelectProps extends /* @vue-ignore */ ElSelectProps {
  data?: YqSelectItem[];
  fetchDataConfig?: FetchDataConfig<YqSelectItem[]>;
}
